import axios from "axios";
import request from "@/utils/request";

export const getGoods = () => {
    return request.post("/goods/getGoods")
}

export const getAll = () => {
    return request.post('/goodsCategory/getAll')
}

export const getDelete = (_id: any) => {
    return request.post('/goodsCategory/delete', _id)
}

export const getCategory = (data: any) => {
    return request.post('/goodsCategory/getCategory', data)
}

export const getOne = () => {
    return request.get('/goodsCategory/getOne')
}

export const getSet = (data: any) => {
    return request.post('/goodsCategory/set', data)
}

export const getAdd = (data:any) => {
    return request.post('/goodsCategory/add',data)
}

export const getLog = (data:any) => {
    return request.post('/couponLog/get',data)
}